package com.regentsoft.cloudback.enterpriseAdmin.vo.resp;

import com.regentsoft.cloudback.enterpriseAdmin.entity.CompanyAdminModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by work on 2017/11/28.
 *
 * @author lumr
 */
public class LoginResult {
    @ApiModelProperty(notes = "token", position = 1)
    private String token;
    @ApiModelProperty(notes = "企业编号", position = 2)
    private String companyId;
    @ApiModelProperty(notes = "企业名称", position = 3)
    private String companyName;

    public LoginResult(String token, CompanyAdminModel adminModel) {
        this.token = token;
        companyId = adminModel.getCode();
        companyName = adminModel.getCompanyName();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
